const express = require('express')
const router = express.Router()
const userController = require('../controller/user')// 引入userController 操作数据库
const userValidator = require("../validator/user")//引入userValidator 验证规则
router.post('/add', userValidator.register, userController.register)//注册用户
router.get('/update/:id', userController.update)//编辑用户信息
module.exports = router